<?php
		direct_url();
		$id=$_GET['id']; //string nha
		
		
				$base_url=HOME.'truyentranh/group/'.$id.'.html/';
				$og_url=HOME.'truyentranh/group/'.$id.'.html';
				$data1['og']='<link rel="canonical" href="'.$og_url.'" /><meta name="ROBOTS" content="INDEX,NOFOLLOW"/>';
				
		$db=new db;
		$db->connect();
		$db->query("select * from anime_fansub where alias='$id'");
		if($db->num_rows()>0){
				$data1=$db->fetchOne();
		
				$data['group']=$data1;
				
			
				
				$order=' id desc';
			
		
				$cache=new Cache;
				$sql ="select id from anime where duyet=1 and nguon like '%".$data1['name']."%'  order by ".$order;
				$sql2="select id from anime where duyet=1 and nguon like '%".$data1['name']."%'";
				
				
				$pager = new Pagination($sql,24,4,$base_url,14000,'anime_1');
				$pager->setDebug(false);
				$data['info'] = $pager->paginate($cache,$sql2);
				$data['nav']	= $pager->renderFullNav();
		} //End num_row > 0
		
		
			$data1['og']='<link rel="canonical" href="'.$og_url.'" /><meta name="ROBOTS" content="INDEX,FOLLOW"/>';
			$data1[title]=web_title($data1['name']." | Truyện của nhóm ".$data1['name'] . ' - ' . DOMAIN_NAME);
			$data1['mota']=web_des("Những bộ truyện tranh hay nhất do nhóm ".$data1['name']." biên dịch");
			$data1['keyword']=web_keyword($data1['name'].",".$data1['alias'].",truyen cua".$data1['name']);
			loadview('template/header2',$data1);
			loadview("anime/list_anime_fansub_manga",$data);
			loadview('template/footer2');
			exit();
			
			
